import request from "@/utils/http";

// 获取图书类型列表
export const getClassListe = () => {
  return request({
    url: "/api/class/list",
  });
};

// 添加图书类型
export const postClassAdd = (data) => {
  return request.post("/api/class/add", data);
};

// 删除图书类型
export const deleteClassDel = (id) => {
  return request.delete("/api/class/delete", { params: { id } });
};

// 修改图书类型
export const putClassEdit = (data) => {
  return request.put("/api/class/update", data);
};

// 获取图书类型详细
export const getClassDetails = (id) => {
  return request.get("/api/class/details", { params: { id } });
};
